import React from 'react'

interface Props{
    fallback:React.reactNode
}

export default class extends React.Component<Props> {
    state = {hasError}
    //从错误中映射状态对象
    < ErrorBoundary >
    </ErrorBoundary>

}